/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package biz;

import dao.SuccessStoryDAO;
import entity.SuccessStory;
import java.sql.SQLException;
import java.util.ArrayList;

/**
 *
 * @author Young Ran
 */
public class SuccessStoryBO {
    
    //DISPLAY SUCCESS STORIES:
    public ArrayList<SuccessStory> getAllSuccessStory() throws SQLException{
        return new SuccessStoryDAO().getAllSuccessStory();
    }
    public void addSuccessStory(SuccessStory item) throws SQLException
    {
        new SuccessStoryDAO().addSuccessStory(item);
    }
    public void editSuccessStory(SuccessStory item) throws SQLException{
        new SuccessStoryDAO().editSuccessStory(item);
    }
    public void deleteSuccessStory(int id) throws SQLException{
        new SuccessStoryDAO().deleteSuccessStory(id);
    }
    
}
